package com.qupai.service;

import com.qupai.dto.CancelRegistrationDTO;
import com.qupai.dto.RegistrationDTO;
import com.qupai.dto.RegistrationPageQueryDTO;
import com.qupai.dto.RegistrationRejectionDTO;
import com.qupai.entity.Registration;
import com.baomidou.mybatisplus.extension.service.IService;
import com.qupai.result.PageResult;
import com.qupai.vo.CertificateVO;
import com.qupai.vo.RegistrationVO;

/**
 * <p>
 * 活动报名表 服务类
 * </p>
 *
 * @author bluefoxyu
 * @since 2024-03-17
 */
public interface IRegistrationService extends IService<Registration> {

    /**
     * 报名活动
     */
    CertificateVO signUp(RegistrationDTO registrationDTO);

    /**
     * 取消报名活动
     */
    void cancel(CancelRegistrationDTO cancelRegistrationDTO);

    /**
     * 报名分页查询
     */
    PageResult conditionSearch(RegistrationPageQueryDTO registrationPageQueryDTO);

    /**
     * 完成报名

     */
    RegistrationVO complete(Long id);

    /**
     * 拒单
     */
    void rejection(RegistrationRejectionDTO registrationRejectionDTO);

    /**
     * 历史报名查询
     */
    PageResult pageQueryUser(Long pageNo, Long pageSize, Integer status);
}
